{% extends 'buyer/base.html' %}


{% block title %}
    个人信息
{% endblock %}


{% block style %}
    <style>

    </style>
{% endblock %}


{% block content %}
    <div class="content content-nav-base  login-content">
        <div class="main-nav">
            <div class="inner-cont0">
                <div class="inner-cont1 w1200">
                    <div class="inner-cont2">
                        <a href="/Buyer/all_goods/0/" class="active">所有商品</a>
                        <a href="/Buyer/tuan_gou/">今日团购</a>
                        <a href="/Buyer/zi_xun/">母婴资讯</a>
                        <a href="/Buyer/jian_jie/">关于我们</a>
                    </div>
                </div>
            </div>
        </div>
        <div class="login-bg" >
            <div class="login-cont w1200" style="border: 1px solid red; background-color:whitesmoke;font-size: 24px">
                <form method="post" enctype="multipart/form-data">
                    {% csrf_token %}
                    <table class="table" style="width: 100%; height: 700px">
                        <tr>
                            <td rowspan=3 width="300px">
                                <img style="width: 80%;height: 80%;" src="/static/{{ user.photo }}">
                                <input type="file" name="photo">
                            </td>
                            <th>姓名：</th>
                            <td><input value="{{ user.username }}" name="username"></td>
                            <th>性别：</th>
                            <td><input value="{{ user.gender }}" name="gender"></td>
                        </tr>
                        <tr>
                            <th>年龄：</th>
                            <td><input value="{{ user.age }}" name="age"></td>
                            <th>电话：</th>
                            <td><input value="{{ user.telephone }}" name="telephone" disabled></td>
                        </tr>
                        <tr>
                            <th>邮箱：</th>
                            <td><input value="{{ user.email }}" name="email" ></td>
                            <th>地址：</th>
                            <td><input value="{{ user.address }}" name="address"></td>
                        </tr>
                        <tr>
                            <th colspan="5" style="text-align: right"><input class="btn btn-warning btn-block" type="submit" value="完善用户信息"></th>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
{% endblock %}


{% block script %}

{% endblock %}